<?php
namespace app\serverfavorite\logic;
use \app\manage\logic\BaseLogic;
use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-07-26 17:27:38
 * @Description: 收藏分类
 */
class FavoriteCategory extends BaseLogic
{
	
	protected $favoriteCategoryLogic = '\app\serverfavorite\logic\FavoriteCategory';
    protected $favoriteCategoryValidate = '\app\serverfavorite\validate\FavoriteCategory';

    use \app\serveruser\traits\AddAppIdToRunOne;

    /*编辑一个收藏分类*/
    public function editCate($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/editCate', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }

    /*查看该分类详情*/
    public function oneCateInfo($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/oneCateInfo', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }

    /*查看收藏列表*/
    public function cateList($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/cateList', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }

    /*删除某个收藏分类*/
    public function delOneCate($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/delOneCate', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }

    /*批量删除收藏分类*/
    public function batchDelCate($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/batchDelCate', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }

    /*启用/禁用 一个 分类*/
    public function changeStatus($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/changeStatus', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }

    /*启用/禁用 多个 分类*/
    public function batchChangeStatus($data): array 
    {
        return $this->_addAppIdToRunOne($data, 'serverfavorite/favorite/FavoriteCategory/batchChangeStatus', $this->favoriteCategoryValidate, $this->favoriteCategoryLogic);
    }




}